@model ShivamEMR.Model.Domain.CRMDomain.Appointment

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Appointment</legend>

    <div class="display-label">DateAndTime</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateAndTime)</div>

    <div class="display-label">Occation</div>
    <div class="display-field">@Model.Occation</div>

    <div class="display-label">Priority</div>
    <div class="display-field">@Model.Priority</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Employee</div>
    <div class="display-field">@(Model.Employee == null ? "None" : Model.Employee.Title)</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group).ToString()</div>

    <div class="display-label">Venue</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Venue).ToString()</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Status).ToString()</div>

    <div class="display-label">AppointmentWith</div>
    <div class="display-field">@(Model.AppointmentWith == null ? "None" : Model.AppointmentWith.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


